﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using System.Runtime.Serialization;
using Serialize.Linq.Nodes;

namespace Project.Common
{
	[DataContract]
	public class LinqOrder<T>
	{
		[DataMember]
		public Expression<Func<T, object>> Path{get;set;}

		[DataMember]
		public EnumOrder Direction { get; set; }
	}

	[DataContract]
	public class LinqOrderSerialized<T>
	{
		[DataMember]
		public ExpressionNode Path { get; set; }

		[DataMember]
		public EnumOrder Direction { get; set; }
	}
}
